package com.lhn;

import com.lhn.config.SpringConfig;
import com.lhn.dao.BookDao;
import com.lhn.dao.impl.BookDaoImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.awt.print.Book;

/**
 * @author lhn
 * @date 2024-08-22 13:08
 */

public class App20 {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookDao bookDao = ctx.getBean(BookDao.class);
        String name = bookDao.findNameById(642789, "qwer");
        System.out.println(name);
    }
}
